package com.service.impl;

import com.dao.UserDao;
import com.dao.impl.UserDaoImpl;
import com.entity.user.User;
import com.service.UserService;

import java.util.List;

/**
 * @author wang_
 * @version 2024.3.4.1
 * @description
 * @date 2025/7/11
 */
public class UserServiceImpl implements UserService {
	private final UserDao userDao = new UserDaoImpl();
//	@Override
//	public UserDetailed getUserDetailed(int id, String password) {
//		return userDao.getUser(id, password);
//	}
//
//	@Override
//	public UserDetailed logonUser(int id, String password) {
//		UserDetailed userDetailed = getUserDetailed(id, password);
//		if (userDetailed != null) {
//			updateLastOnlineTime(id);
//		}
//		return userDetailed;
//	}
	
	@Override
	public int updateLastOnlineTime(int id) {
		return userDao.updateLastOnlineTime(id);
	}
	
	@Override
	public List<User> selectAll() {
		return userDao.selectAll();
	}
	
}
